package com.fzkj.bio.fileupload;

import java.net.ServerSocket;
import java.net.Socket;

/**
 * 接收客户端任意类型文件，并保存到磁盘
 */
public class Server {

    public static void main(String[] args) {
        try{
            ServerSocket ss = new ServerSocket(2323);
            while(true){
                Socket s = ss.accept();
                new Thread(new ServerReadThread(s)).start();
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }

}
